#!/usr/bin/env python3

from designpattern import Singleton

class Session(object, metaclass=Singleton):
    __metaclass__ = Singleton
    sessionId = None
    createTime = None
    sessionMap = {}

    def __init__(self):
        super(Session, self).__init__()

    def setAttribute(self, name, value) :
        self.sessionMap = {name:value}
        print(self.sessionMap)

    def getAttribute(self, name) :
        print(self.sessionMap)
        return self.sessionMap[name]

    def removeAttribute(self, name) :
        pass

    def getId(self) :
        pass

    def getCreateTime(self) :
        pass






